-
Notifications
You must be signed in to change notification settings - Fork 1
update referenced file name due to change with serverless offline upgrade #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break dev and master? package.json doesn't specify a branch or hash, if that's even possible.
index.js
Outdated
// TODO: send PR to serverless-offline to export this | ||
const functionHelper = require('serverless-offline/src/functionHelper') | ||
const createLambdaContext = require('serverless-offline/src/createLambdaContext') | ||
const createLambdaContext = require('serverless-offline/src/LambdaContext') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about something like-
let createLambdaContext = null;
try {
// Support serverless-offline prior to version x.y.z.
createLambdaContext = require('serverless-offline/src/createLambdaContext')
} catch(e) {
try {
// Support serverless-offline after version x.y.z.
createLambdaContext = require('serverless-offline/src/LambdaContext')
} catch(e) {
// burgers and fries
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed exactly that. Long story, long.. Houston doesn't need ssl for serverless iot local anymore so we may not need the fork of serverless-iot-local which then means we can send this fix to tradle as a PR instead of maintaining the fork.. and no, he didn't fix it yet either. Another ticket for another time. We'll defer the upgrade of serverless-offline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still use iot for local serverless-offline testing. We likely still need this plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something in the fork that we need for off-line testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would we fork anything? Keep this plugin. Problem solved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're going to need to explain better than word circling (or squaring).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going with the answer you gave me yesterday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you send this new PR upstream too?
No description provided.